package com.tct.worktimeboard.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author liyongkui
 * @since 2021-02-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@NoArgsConstructor
@JsonInclude(value = JsonInclude.Include.NON_NULL)
public class Work extends PageObject implements Serializable{

    private static final long serialVersionUID = 1L;

    /**
     * 工时表ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名
     */
    @Excel(name = "用户名",  width = 25)
    private String username;

    /**
     * 填报用户ID
     */
    private Integer userId;

    /**
     * PDT名称
     */
    private Integer pdtId;

    /**
     * 工作分类
     */
    private Integer workKindId;

    /**
     * 项目ID
     */
    private Integer projectId;

    @TableField(exist = false)
    private String projectName;

    private Long taskId;    //任务ID

    /**
     * 工时
     */
    @Excel(name = "工时", width = 25)
    private BigDecimal workTime;

    /**
     * 工时开始时间
     */
    private String workStartTime;

    /**
     * 工时结束时间
     */
    private String workEndTime;

    /**
     * 工作内容描述
     */
    private String workDescribe;

    /**
     * 确认人ID
     */
    private Integer makeUserId;

    private String makeUsername;

    /**
     * 确认结果
     */
    private Boolean makeStatus;

    /**
     * 评价
     */
    @Excel(name = "评价", width = 25)
    private String evaluate;

    @Excel(name = "星级", width = 25)
    private Integer startLevel;

    private Integer groupTypeId;    //群组分类ID

    @TableField(exist = false)
    private String groupTypeName;

    /**
     * 创建时间
     */
    private String createTime;


}
